package com.ask.config;

//@Configuration
//public class SchedulerConfig {
//    @Bean
//    public ThreadPoolTaskScheduler taskScheduler() {
//        ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
//        scheduler.setPoolSize(5); // 设置线程池大小
//        scheduler.setThreadNamePrefix("ScheduledTask-");
//        return scheduler;
//    }
//}
